package cn.edu.lcu.cs.javaprogramming.oop.animal;

/**
 * 企鹅类
 * 2022/3/11 17:56
 *
 * @Author by ling
 */

public class Penguin extends Bird implements Swimmable {
    public Penguin() {
        setSpeciesName("企鹅");
    }

    @Override
    public void reproduce() {

    }

    @Override
    public void feed() {
        System.out.println("父母双方轮流养育后代");
    }

    @Override
    public void walk() {
        System.out.println("走路摇摇摆摆很滑稽");
    }

    @Override
    public void eat() {
        System.out.println("喜欢吃鱼与磷虾");
    }

    @Override
    public void swim() {
        System.out.println("游泳就像在水里飞");
    }

}
